<?php
    require('./00_init.php');
    @$lid=$_REQUEST['lid'];
    @$price=$_REQUEST['price'];
    $uid=1;
    $sql="UPDATE xz_laptop SET price=$price,mtime=now(),muid=$uid WHERE lid=$lid";
    $request=mysqli_query($conn,$sql);
    if($request){
        if(mysqli_affected_rows($conn)){
            echo '{"code":1,"msg":"更新成功"}';
        }else{
            echo '{"code":0,"msg":"更新失败"}';
        }

    }else{
        echo '{"code":0,"msg":"服务器繁忙"}';
    }
 ?>